<?php
require_once 'models/acl.inc';
require_once 'services/TIntrinsicPageService.inc';

/**
 * @author dkrasilnikov@gmail.com
 */

class TMSBackOfficePage extends TIntrinsicPage {	
	public function __get($nm){
		switch ($nm){
			case 'FrontUrl':return $this->Service()->FrontUrl();break;
			case 'FrontLoginUrl':return $this->Service()->FrontUrl('front',array('page'=>'login'));break;
			case 'ShopSettingsMap':return $this->_settings_map_;break;
			case 'User':return $this->service->Acl->CurrentUser();break;
			default:{
				if ($this->Service()->ShopSettings)
					if ($v = $this->Service()->ShopSettings->GetValue($nm))
						return $v;
				return parent::__get($nm);
			}break;
		}
	}
}